<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<!-- +----------+--------------+------+-----+---------+----------------+
| Field    | Type         | Null | Key | Default | Extra          |
+----------+--------------+------+-----+---------+----------------+
| id       | int(11)      | NO   | PRI | NULL    | auto_increment |
| band     | varchar(255) | YES  |     | NULL    |                |
| birthday | datetime     | YES  |     | NULL    |                |
| price    | double       | YES  |     | NULL    |                |
+----------+--------------+------+-----+---------+----------------+ -->

<table>
<tr>
	<th>品牌</th>
	<th>出厂日期</th>
	<th>价格</th>
	<th>编辑</th>
</tr>

<c:forEach items="${cars }" var="car">

<tr>
	<td>${car.band }</td>
	<td>${car.birthday }</td>
	<td>${car.price }</td>
	<td><a href="update_view?id=${car.id }">编辑</a>|<a href="remove?id=${car.id }">删除</a></td>
</tr>
</c:forEach>
</table>

</body>
</html>